import Vue from "vue"
import Vuex from "vuex"
// import VuexPersistence from "vuex-persist";
import nav from "./nav.js";

Vue.use(Vuex)

// const vuexLocal = new VuexPersistence({
//     storage: window.sessionStorage
//   });

  
export default new Vuex.Store({
    modules: {  //这里来存放模块中的存储方法
        nav
    },
    // plugins: [vuexLocal.plugin]
})